<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page language="java" import="org.jdom.*,com.uft.utils.*,java.util.*"
	errorPage="error.jsp"
%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ page isELIgnored="false"%>
<style type="text/css">
   .customTable {
   		width: 100%;
   		border: 1px solid #aaaaaa;
   		
   }
  
</style>
<%
String xml = (String)request.getAttribute("configFile");
int id= (Integer)request.getAttribute("id");
Document doc= JDOMUtil.stringToDocument(xml);


%>

<script>
	$( ".column" ).sortable({
	    connectWith: ".column",
	    handle: ".portlet-header",
	    cancel: ".portlet-toggle",
	    placeholder: "portlet-placeholder ui-corner-all"
	  });
	$( ".portlet" )
	.addClass( "ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" )
	.find( ".portlet-header" )
	  .addClass( "ui-widget-header ui-corner-all" )
	  .prepend( "<span class='ui-icon ui-icon-minusthick portlet-toggle'></span>");
	$( ".portlet-toggle" ).click(function() {
			 var icon = $( this );
			 icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
		icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();
	});
	function updateWasConfiguratioRuntime(task,xpathV){
		 $.ajaxq("config",{

          	  type: "POST",
          	  dataType: 'json',
          	  global: false,
          	  url: "updateWasConfiguratioRuntime/${id}.htm",
          	  data: {
          		xpathValue: xpathV,
          		task: task
          	  },
          	success: function(result){
	       		 if(result.Result == "OK"){
	       			generateDiag("center","success", "Successfuly Saved");
	       		 }else{
	       			generateDiag("center","error", result.Message );
	       		 }
        		 
        	  },
        	error: function () {
        		  generateDiag("center","error", "Error Connecting Server");
        	  },
          	beforeSend: function(){
				waitingDialog({title: "Updating Configurations", message: "Updating..."});
 			},
 			complete: function(){
 				closeWaitingDialog();
 			}
          	  
          	});
	}
</script>
<table style="width: 100%">
<tr><td align="right"><button id="updateAll">Update All</button><button id="deleteAll">Delete All</button></td></tr>
</table>
<div class="column">
<div class="portlet" id="Information">
	<div class="portlet-header">
		Information
	</div>
	<div class="portlet-content">
		<table style="width: 100%">
			<tr><td>Application Name:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:Information/ns:appname") %></td></tr>
			<tr><td>Department:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:Information/ns:department") %></td></tr>
			<tr><td>Region:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:Information/ns:region") %></td></tr>
		</table>
	</div>
</div>
<div class="portlet" id="Cluster">
	<div class="portlet-header">
		Cluster
	</div>
	<div class="portlet-content">
		<table style="width: 100%">
			<tr><td>Cluster Name:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:Cluster/ns:clusterName") %></td></tr>
			<%
				List<Element> clusterNodeList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:Cluster/ns:clusterNode");
				for (Iterator<Element> itr = clusterNodeList.iterator(); itr.hasNext(); ) {
				   Element item = itr.next();
				   out.println("<tr><td>Cluster Node</td>");
				   out.println("<td>");
				   out.println("<table class='customTable'><tr><td>"+item.getChildText("nodeName", item.getNamespace())+"</td><td>"+item.getChildText("serverName", item.getNamespace())+"</td></tr></table>");
				   out.println("</td></tr>");
				}
			%>
		</table>
	</div>
</div>
<div class="portlet" id="ProcessDefinition">
	<div class="portlet-header">
		ProcessDefinition
	</div>
	<div class="portlet-content">
		<h3>JVM Configuration</h3>
		<table style="width: 100%">
			<tr>	<td>Initial HeapSize:</td>
					<td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:initialHeapSize") %></td>
					<td><span class="ui-icon ui-icon-arrowstop-1-n" title="Update" onClick="updateWasConfiguratioRuntime('updateInitialHeapSize','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:initialHeapSize')"></span></td>
			</tr>
			
			<tr><td>Maximum HeapSize:</td>
				<td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:maximumHeapSize") %></td>
				<td><span class="ui-icon ui-icon-arrowstop-1-n" title="update" onClick="updateWasConfiguratioRuntime('updateMaximumHeapSize','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:maximumHeapSize')"></span></td>
			</tr>
			<tr><td>Change Working Directory:</td>
				<td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:changeWorkingDirectory") %></td>
				<td><span class="ui-icon ui-icon-arrowstop-1-n" title="update" onClick="updateWasConfiguratioRuntime('updateChangeWorkingDirectory','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:changeWorkingDirectory')"></span></td></tr>
			<tr><td>Verbose ClassLoader:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:enableVerboseClassLoading") %></td>
				<td><span class="ui-icon ui-icon-arrowstop-1-n" title="update" onClick="updateWasConfiguratioRuntime('updateEnableVerboseClassLoading','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:enableVerboseClassLoading')"></span></td></tr>
			<tr><td>Enable Verbose Garbage Collector:</td>
				<td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:enableVerboseGarbageCollection") %></td>
				<td><span class="ui-icon ui-icon-arrowstop-1-n" title="update" onClick="updateWasConfiguratioRuntime('updateEnableVerboseGarbageCollection','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:enableVerboseGarbageCollection')"></span></td>
			</tr>
			<tr><td>Classpath:</td>
				<td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:classpath") %></td>
				<td><span class="ui-icon ui-icon-arrowstop-1-n"  title="update" onClick="updateWasConfiguratioRuntime('updateEnableClasspath','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:classpath')"></span></td>
			</tr>
			<tr><td>Generic JVM Argument:</td>
				<td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:genericJvmArguments") %></td>
				<td><span class="ui-icon ui-icon-arrowstop-1-n" onClick="updateWasConfiguratioRuntime('updateGenericJvmArguments','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:genericJvmArguments')"></span></td>
			</tr>
			<tr><td>Custom Property</td>
				<td>
				<%
					List<Element> jvmCustomList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:JVM/ns:customProperty");
					for (Iterator<Element> itr = jvmCustomList.iterator(); itr.hasNext(); ) {
						Element item = itr.next();
				%>
						<table class='customTable'>
							<tr>
								<td><%=item.getChildText("name", item.getNamespace()) %></td>
								<td><%=item.getChildText("value", item.getNamespace()) %></td>
								<td><span class="ui-icon ui-icon-arrowstop-1-n" title="update" onClick="updateWasConfiguratioRuntime('updateJVMCustomProperty','/ns:xml/ns:ProcessDefinition/ns:JVM/ns:customProperty[ns:name=\'<%=item.getChildText("name", item.getNamespace()) %>\']')" ></span></td>
							</tr>
						</table>
				<%
						
					}
				%>
			</td>
			<td></td>
			</tr>
		</table>
		<h3>Logging</h3>
		<table style="width: 100%">
			<tr><td>Change Process Logs:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:Logging/ns:changeProcessLogs") %></td></tr>
			<tr><td>Change Trace Logs:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:Logging/ns:changeTraceLogs") %></td></tr>
			<tr><td>Change Trace Logs:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:Logging/ns:changeTraceLogs") %></td></tr>
			<tr><td>Change Service Logs</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:Logging/ns:changeServiceLogs") %></td></tr>
			<tr><td>Roll Over Type</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:Logging/ns:rolloverType") %></td></tr>
			<tr><td>Roll Over Size</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:Logging/ns:rolloverSize") %></td></tr>
			<tr><td>MaxNumber Of BackupFiles</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessDefinition/ns:Logging/ns:maxNumberOfBackupFiles") %></td></tr>
		</table>
	</div>
</div>
<div class="portlet" id="ProcessExecution">
	<div class="portlet-header">
		Process Execution
	</div>
	<div class="portlet-content">
		<table style="width: 100%">
			<tr><td>Unmask:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessExecution/ns:unmask") %></td></tr>
			<tr><td>Run As User:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessExecution/ns:runAsUser") %></td></tr>
			<tr><td>Run As Group:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:ProcessExecution/ns:runAsGroup") %></td></tr>
		</table>
		
	</div>
</div>
<div class="portlet" id="MonitorPolicy">
	<div class="portlet-header">
		Monitor Policy
	</div>
	<div class="portlet-content">
		<table style="width: 100%">
			<tr><td>Node Restart State:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:MonitorPolicy/ns:nodeRestartState") %></td></tr>
		</table>
		
	</div>
</div>

<div class="portlet" id="VirtualHost">
	<div class="portlet-header">
		Virtual Host
	</div>
	<div class="portlet-content">
		<table style="width: 100%">
			<tr><td>Create Virtual Host:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:VirtualHost/ns:createVirtualHost") %></td></tr>
			<tr><td>HTTP Transport Number:</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:VirtualHost/ns:httpTransportNumber") %></td></tr>
			<tr><td>Host Alias:</td><td>
				<%
					List<Element> hostAliasList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:VirtualHost/ns:hostAlias");
					for (Iterator<Element> itr = hostAliasList.iterator(); itr.hasNext(); ) {
						Element item = itr.next();
						out.println("<table class='customTable'><tr><td>"+item.getChildText("hostName", item.getNamespace())+"</td><td>"+item.getChildText("hostPort", item.getNamespace())+"</td></tr></table>");
					}
				%>
			</td></tr>
		</table>
		
	</div>
</div>

</div>
<div class="column">
<div class="portlet" id="WebSphereVariable">
	<div class="portlet-header">
		WebSphere Variable
	</div>
	<div class="portlet-content">
		<table style="width: 100%">
			<tr><td>WebSphere Variable:</td><td>
				<%
					List<Element> propertyList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:WebSphereVariable/ns:property");
					for (Iterator<Element> itr = jvmCustomList.iterator(); itr.hasNext(); ) {
						Element item = itr.next();
						out.println("<table class='customTable'><tr><td>"+item.getChildText("name", item.getNamespace())+"</td><td>"+item.getChildText("value", item.getNamespace())+"</td></tr></table>");
					}
				%>
			</td></tr>
		</table>
		
	</div>
</div>

<div class="portlet" id="WebContainer">
	<div class="portlet-header">
		Web Container
	</div>
	<div class="portlet-content">
		<h3>Web Container</h3>
		<table style="width: 100%">
			<tr><td>Servlet Caching</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:WebContainer/ns:enableServletCaching") %></td></tr>
			<tr><td>Default AsyncServlet Timeout</td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:WebContainer/ns:defaultAsyncServletTimeout") %></td></tr>
		</table>
		<h3>WebContainer TransportChains</h3>
		<table style="width: 100%">
			<tr><td>Persistent Connections: </td><td><%=JDOMUtil.getValueByXpathNameSpace(doc, "/ns:xml/ns:WebContainerTransportChains/ns:persistentConnections") %></td></tr>
		</table>
	</div>
</div>

<div class="portlet" id="J2CAuth">
	<div class="portlet-header">
		J2C Authentication
	</div>
	<div class="portlet-content">
		<table style="width: 100%">
			<tr><td>J2C Authentication</td><td>
			<%
					List<Element> j2cAuth= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:J2CAuth/ns:Alias");
					for (Iterator<Element> itr = j2cAuth.iterator(); itr.hasNext(); ) {
						Element item = itr.next();
						out.println("<table class='customTable'><tr><td>"+item.getChildText("name", item.getNamespace())+"</td>" +
									"<td>"+ item.getChildText("username", item.getNamespace())+"</td>"+
									"<td>"+ item.getChildText("password", item.getNamespace())+"</td>"+
									"</tr></table>");
					}
				%>
			</td></tr>
		</table>
	</div>
</div>

<div class="portlet" id="Resources">
	<div class="portlet-header">
		Resources
	</div>
	<div class="portlet-content">
		<h3>JDBCProvider</h3>
		<%
		List<Element> jdbcProviderList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:Resources/ns:JDBCProvider");
		for (Iterator<Element> itr = jdbcProviderList.iterator(); itr.hasNext(); ) {
			Element item = itr.next();
			out.println("<h4>"+item.getChildText("name", item.getNamespace())+
					"<span class=\"ui-icon ui-icon-arrowstop-1-n\"  title=\"update\" onClick=\"updateWasConfiguratioRuntime('updateJDBCProvider','/ns:xml/ns:Resources/ns:JDBCProvider[ns:name=\\'"+item.getChildText("name", item.getNamespace())+"\\']')\"></span>"+
					"</h4>");
			out.println("<table style='width: 100%' class='customTable'>");
			out.println("<tr><td>Name:</td><td>"+item.getChildText("name", item.getNamespace())+"</td></tr>");
			out.println("<tr><td>Classpath:</td><td>"+UftUtils.formatXMLStr(item.getChildText("classpath", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>Native Path:</td><td>"+UftUtils.formatXMLStr(item.getChildText("native", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>Template:</td><td>"+item.getChildText("template", item.getNamespace())+"</td></tr>");
			out.println("</table>");
			
		}
		
		
		%>
		<h3>DataSource</h3>
			<h4>DB2 Universal</h4>
			<%
				List<Element> db2DSList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:Resources/ns:DataSource/ns:DB2DS");
				for (Iterator<Element> itr = db2DSList.iterator(); itr.hasNext(); ) {
					Element item = itr.next();
					out.println("<table style='width: 100%' class='customTable'>");
					out.println("<tr><td>Name:</td><td>"+UftUtils.formatXMLStr(item.getChildText("name", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>JNDI Name:</td><td>"+UftUtils.formatXMLStr(item.getChildText("jndiName", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>JDBC Provider</td><td>"+UftUtils.formatXMLStr(item.getChildText("JDBCProvider", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>Container Managed Persistence:</td><td>"+UftUtils.formatXMLStr(item.getChildText("containerManagedPersistence", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>DatabaseName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("databaseName", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>ServerName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("serverName", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>PortNumber:</td><td>"+UftUtils.formatXMLStr(item.getChildText("portNumber", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>driverType:</td><td>"+UftUtils.formatXMLStr(item.getChildText("driverType", item.getNamespace()))+"</td></tr>");
					out.println("<tr><td>Connection:</td><td>");
					out.println("<table class='customTable'>");
						Element connectionPool=item.getChild("connectionPool", item.getNamespace());
						if(connectionPool != null ){
							out.println("<tr><td>minConnection:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("minConnection", item.getNamespace()))+"</td></tr>");
							out.println("<tr><td>maxConnection:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("maxConnection", item.getNamespace()))+"</td></tr>");
							out.println("<tr><td>connectionTimeout:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("connectionTimeout", item.getNamespace()))+"</td></tr>");
							out.println("<tr><td>reapTime:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("reapTime", item.getNamespace()))+"</td></tr>");
							out.println("<tr><td>unusedTimeout:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("unusedTimeout", item.getNamespace()))+"</td></tr>");
							out.println("<tr><td>agedTimeout:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("agedTimeout", item.getNamespace()))+"</td></tr>");
							out.println("<tr><td>purgePolicy:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("purgePolicy", item.getNamespace()))+"</td></tr>");
						}	
					out.println("</table>");
					out.println("<br>");
					out.println("</td></tr>");
					out.println("</table>");
					out.println("<br>");
				}
			%>
		<h3>MQ Queue Connection Factory</h3>
		<%
		List<Element> MqQCFList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:Resources/ns:MQQCF");
		for (Iterator<Element> itr = MqQCFList.iterator(); itr.hasNext(); ) {
			Element item = itr.next();
			out.println("<table style='width: 100%' class='customTable'>");
			out.println("<tr><td>Name:</td><td>"+item.getChildText("name", item.getNamespace())+"</td></tr>");
			out.println("<tr><td>jndiName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("jndiName", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>queueManager:</td><td>"+UftUtils.formatXMLStr(item.getChildText("queueManager", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>host:</td><td>"+UftUtils.formatXMLStr(item.getChildText("host", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>port:</td><td>"+UftUtils.formatXMLStr(item.getChildText("port", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>channel:</td><td>"+UftUtils.formatXMLStr(item.getChildText("channel", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>transportType:</td><td>"+UftUtils.formatXMLStr(item.getChildText("transportType", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>messageRetention:</td><td>"+UftUtils.formatXMLStr(item.getChildText("messageRetention", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>XAenabled:</td><td>"+UftUtils.formatXMLStr(item.getChildText("XAenabled", item.getNamespace()))+"</td></tr>");
			out.println("<table class='customTable'>");
			Element connectionPool=item.getChild("connectionPool", item.getNamespace());
			if(connectionPool != null ){
				out.println("<tr><td>minConnection:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("minConnection", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>maxConnection:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("maxConnection", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>connectionTimeout:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("connectionTimeout", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>reapTime:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("reapTime", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>unusedTimeout:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("unusedTimeout", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>agedTimeout:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("agedTimeout", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>purgePolicy:</td><td>"+UftUtils.formatXMLStr(connectionPool.getChildText("purgePolicy", item.getNamespace()))+"</td></tr>");
			}	
		out.println("</table>");
		out.println("<br>");
		out.println("</td></tr>");
		out.println("</table>");
		out.println("<br>");
		}
		%>
		
		<h3>MQ Queues</h3>
		<%
		List<Element> QueueList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:Resources/ns:MQQueue");
		for (Iterator<Element> itr = QueueList.iterator(); itr.hasNext(); ) {
			Element item = itr.next();
			out.println("<table style='width: 100%' class='customTable'>");
			out.println("<tr><td>name:</td><td>"+UftUtils.formatXMLStr(item.getChildText("name", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>jndiName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("jndiName", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>baseQueueName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("baseQueueName", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>persistence:</td><td>"+UftUtils.formatXMLStr(item.getChildText("persistence", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>specifiedPriority:</td><td>"+UftUtils.formatXMLStr(item.getChildText("specifiedPriority", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>expiry:</td><td>"+UftUtils.formatXMLStr(item.getChildText("expiry", item.getNamespace()))+"</td></tr>");
			out.println("<tr><td>specifiedPriority:</td><td>"+UftUtils.formatXMLStr(item.getChildText("specifiedPriority", item.getNamespace()))+"</td></tr>");
			out.println("</table>");
			out.println("<br>");
		}
		
		%>
	</div>
</div>

<div class="portlet" id="ListenerPorts">
	<div class="portlet-header">
		Listener Ports
	</div>
	<div class="portlet-content">
		<%
			List<Element> portList= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:ListenerPorts/ns:port");
			for (Iterator<Element> itr = portList.iterator(); itr.hasNext(); ) {
				Element item = itr.next();
				out.println("<table style='width: 100%' class='customTable'>");
				out.println("<tr><td>name:</td><td>"+UftUtils.formatXMLStr(item.getChildText("name", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>connectionFactoryJNDIName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("connectionFactoryJNDIName", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>destinationJNDIName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("destinationJNDIName", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>initialState:</td><td>"+UftUtils.formatXMLStr(item.getChildText("initialState", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>maximumSessions:</td><td>"+UftUtils.formatXMLStr(item.getChildText("maximumSessions", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>maximumRetries:</td><td>"+UftUtils.formatXMLStr(item.getChildText("maximumRetries", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>maximumMessages:</td><td>"+UftUtils.formatXMLStr(item.getChildText("maximumMessages", item.getNamespace()))+"</td></tr>");
				out.println("</table>");
				out.println("<br>");
			}
		%>
	</div>
</div>
<div class="portlet" id="MonitoringTool">
	<div class="portlet-header">
		Monitoring Tool
	</div>
	<div class="portlet-content">
		<%
			List<Element> montoringTool= JDOMUtil.getElementByXpathNameSpace(doc, "/ns:xml/ns:Montoring");
			for (Iterator<Element> itr = portList.iterator(); itr.hasNext(); ) {
				Element item = itr.next();
				out.println("<table style='width: 100%' class='customTable'>");
				out.println("<tr><td>enableMonitoring:</td><td>"+UftUtils.formatXMLStr(item.getChildText("enableMonitoring", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>monitorTool:</td><td>"+UftUtils.formatXMLStr(item.getChildText("monitorTool", item.getNamespace()))+"</td></tr>");
				out.println("</table>");
				out.println("<br>");
				out.println("<table style='width: 100%' class='customTable'>");
				out.println("<tr><td>hpAgentInstallRoot:</td><td>"+UftUtils.formatXMLStr(item.getChildText("hpAgentInstallRoot", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>hpenablePMS:</td><td>"+UftUtils.formatXMLStr(item.getChildText("hpenablePMS", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>hpJvmOptions:</td><td>"+UftUtils.formatXMLStr(item.getChildText("hpJvmOptions", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>hpinitialSpecLevel:</td><td>"+UftUtils.formatXMLStr(item.getChildText("hpinitialSpecLevel", item.getNamespace()))+"</td></tr>");
				out.println("</table>");
				out.println("<br>");
				out.println("<table style='width: 100%' class='customTable'>");
				out.println("<tr><td>willyInstallRoot:</td><td>"+UftUtils.formatXMLStr(item.getChildText("willyInstallRoot", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>agentNameProp:</td><td>"+UftUtils.formatXMLStr(item.getChildText("agentNameProp", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>profileNameProp:</td><td>"+UftUtils.formatXMLStr(item.getChildText("profileNameProp", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>profileValueProp:</td><td>"+UftUtils.formatXMLStr(item.getChildText("profileValueProp", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>customServicesStartup:</td><td>"+UftUtils.formatXMLStr(item.getChildText("customServicesStartup", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>customServicesClassname:</td><td>"+UftUtils.formatXMLStr(item.getChildText("customServicesClassname", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>customServicesDispName:</td><td>"+UftUtils.formatXMLStr(item.getChildText("customServicesDispName", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>enablePMS:</td><td>"+UftUtils.formatXMLStr(item.getChildText("enablePMS", item.getNamespace()))+"</td></tr>");
				out.println("<tr><td>initialSpecLevel:</td><td>"+UftUtils.formatXMLStr(item.getChildText("initialSpecLevel", item.getNamespace()))+"</td></tr>");
				out.println("</table>");
				out.println("<br>");
			}
		%>
	</div>
</div>
</div>

